import request from "@/utils/request";

// 查询光路监测列表
export function listCircuitMeasure(query) {
  return request({
    url: "/base/circuitMeasure/list",
    method: "get",
    params: query,
  });
}

// 查询光路监测详细
export function getCircuitMeasure(measureId) {
  return request({
    url: "/base/circuitMeasure/" + measureId,
    method: "get",
  });
}

// 删除光路监测
export function delCircuitMeasure(measureId) {
  return request({
    url: "/base/circuitMeasure/" + measureId,
    method: "delete",
  });
}

//设置参考曲线
export function setDefaultMeasure(measureId) {
  return request({
    url: "/base/circuitMeasure/setDefaultMeasure/" + measureId,
    method: "put",
  });
}


// 参数 曲线id列表  返回的jsonData 为曲线json数据
export function viewCurve(measureIds) {
  return request({
    url: "/base/circuitMeasure/viewCurve/" + measureIds,
    method: "get",
  });
}

// 获取参考曲线带事件
export function getDefaultMeasure(measureId) {
  return request({
    url: "/base/circuitMeasure/getDefaultMeasure/" + measureId,
    method: "get",
  });
}

